package vericopServer;

import java.security.Security;

import messages.GenericMessage;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

import connection.TCPServerSocket;
import connection.exception.ConnectionResetException;

public class VericopServer {
	
	private VericopData _vericopData;

	static{
		Security.addProvider(new BouncyCastleProvider());
	};
	
	public VericopServer() throws ConnectionResetException{
		_vericopData = new VericopData("Jq8C531GCt");
	}
	
	public void run() throws ConnectionResetException{
		GenericMessage msg = new GenericMessage();
		msg._number=1;
		msg._objectString= "lalalala";
		msg._objectType = "blablabla";
		msg._signature ="bananas";
		
		_vericopData.send(msg);
	}
	
	public static void main(String[] args){
		VericopServer vericop;
		try {
			vericop = new VericopServer();
			vericop.run();
		} catch (ConnectionResetException e) {
			e.printStackTrace();
		}
		
	}
}
